import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    NavArray:'',
    // 存储上传文件中的数据
    saveData1: [],
    sum: '',
  },

  getters: {
  },
  mutations: {
    addNav(state,num){
      state.NavArray = num;
    },
    UPdataData(state, data) {
      state.saveData1 = data
    },
    UPdataSum(state, data) {
      state.sum = data
    }
  },
  actions: {
    
  },
  actions: {

  },
  modules: {
  }
})

